function Controller(tagp){
	this.uid = _.getUid(); 	
	this.htmlX = $(tagp);
	this.htmlX.attr("id","uid_"+this.uid);
}
Controller.prototype.getHtmlX=function(){
	return $("#uid_"+this.uid);
};
Controller.prototype.setEnable=function(on){
	if(on){
		this.htmlX.find(".inputtt").prop("disabled",!on).removeClass("Disabled").css({opacity:1});
	}else{
		this.htmlX.find(".inputtt").prop("disabled",!on).addClass("Disabled").css({opacity:0.6});
	}
};
Controller.prototype.setSize = function(nsize){
	var classes = this.htmlX.attr("class");
	var ns = classes.replace(/col\-xs\-(\d{1,2})/,"col-xs-"+nsize);
	this.htmlX.removeClass().addClass(ns);
};
Controller.prototype.setLabel=function(nlabel){	
	this.htmlX.find("label").text(nlabel);
};
Controller.prototype.setMaxLength = function(p_lgt){
	this.htmlX.find(".inputtt").attr('maxlength',p_lgt);
};
Controller.prototype.setMinLength = function(p_lgt,p_msgerro){
	//this.htmlX.find(".inputtt").attr('maxlength',vl);
};
Controller.prototype.setValidation = function(p_mask,p_msgerro){
	//this.htmlX.find(".inputtt").attr('maxlength',vl);
};
Controller.prototype.setMinLength = function(vl,p_msgerro){
	//this.htmlX.find(".inputtt").attr('maxlength',vl);
};
Controller.prototype.setValue = function(vl){		
	var palavra = new String(vl);//.toUpperCase();		
	this.htmlX.find(".inputtt").val(palavra).change();
};
Controller.prototype.getValue = function(){
	return this.htmlX.find(".inputtt").val();
};